﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogHelp
{
    public class Log :ILogHelp
    {
        private static log4net.ILog logBase = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        /// <summary>
        /// 写信息日志
        /// </summary>
        /// <param name="info"></param>
        public void writeInfo(string info)
        {
            logBase.Info(info);
          
        }

        /// <summary>
        /// 写错误日志
        /// </summary>
        /// <param name="error"></param>
        public void writeError(string error)
        {
            logBase.Error(error);
        }
    }
}
